<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>基础数据管理-项目信息新增</title>
    <script src="/scripts/boot.js"></script>
</head>
<body class="bg-white">
<div id="viewForm">
    <div class="title-div">模板名称： <span id="name"></span></div>
    <!--<div class="mini-fit">-->
        <div id="datagrid1" class="mini-datagrid" style="width:100%;height:520px;"  url="/planTempData/listByPage" sizeList="[5,10,20,50]" pageSize="20"  idField="id" multiSelect="true" pagerButtons="buttons">
            <div property="columns">
                <div field="NO" width="40" headerAlign="center" align="center" allowSort="true">编号</div>
                <div field="busiMode" width="120" headerAlign="center" allowSort="true">业务模块</div>
                <div field="nodeName" width="120" headerAlign="center" allowSort="true">节点名称</div>
                <div field="nodeProperty" width="120" headerAlign="center" align="center" allowSort="true">节点性质</div>
                <div field="completeStandard" width="120" headerAlign="center" allowSort="true">完成标准</div>
                <div field="deadline" width="120" headerAlign="center" align="center" allowSort="true">工期</div>
                <div field="deadlineDesc" width="120" headerAlign="center" allowSort="true">工期说明</div>
                <div field="companyName" width="120" headerAlign="center" allowSort="true">公司名称</div>
                <div field="officeName" width="120" headerAlign="center" align="center" allowSort="true">部门名称</div>
                <div field="postName" width="120" headerAlign="center" align="center" allowSort="true">岗位</div>
                <div field="supervise" width="120" headerAlign="center" align="center" allowSort="true">监督岗位</div>
                <div field="remark" width="120" headerAlign="center" allowSort="true">备注</div>
            </div>
        </div>
    <!--</div>-->
    <div class="chose-toolbar">
        <a class="chose-button" onclick="CloseWindow('close')">关闭</a>
    </div>
</div>
<script src="/scripts/res/js/common.js"></script>
<script type="text/javascript">
    var form;
    var view = {
        init: function () {
            mini.parse();
            form = new mini.Form("#viewForm");
        },
//    数据展示
        SetData: function (data) {
            data = mini.clone(data);
            $.ajax({
                url:"/planTemplete/info?id=" + data.id,
                type: "post",
                success: function (text) {
                    //跨页面传递的数据对象，克隆后才可以安全使用
                    var datas = mini.decode(text);   //反序列化成对象
                    $.each(datas.body[0],function (key,value) { 
                        $("#"+key).html(value);
                    });
                    common.unmask();
                }
            });
            grid = mini.get("datagrid1");
            var data = {
                    "planTemplete.id": data.id
             };
            grid.load(data)
        }
    };
    view.init();
</script>
</body>
</html>